﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BT_DoHoa_Nhom13.ShapeLib
{
    public abstract class MyDiagramShape : MyShape
    {
        protected List<MyShape> lstShapes;

        protected override void ActualDraw(MyGraphic graphic)
        {
            foreach(MyShape shape in lstShapes)
            {
                shape.Draw(graphic,null);
            }
        }

        public override void SetEndPoint(int X, int Y)
        {
            base.SetEndPoint(X, Y);
            ResetChildPoint();
        }

        public abstract void ResetChildPoint();

    }
}
